From: Jan Beulich Date: Thu, 11 Dec 2014 11:24:05 +0000 (+0100) Subject: VMX: don't allow PVH to reach handle_mmio() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4016 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4d1308afaafa43ff68d6ecc493e36ee8f3ac9942;p=xen.git VMX: don't allow PVH to reach handle_mmio() PVH guests accessing I/O ports via string ops is not supported yet. Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Acked-by: Mukesh Rathor Acked-by: Roger Pau Monné Acked-by: Kevin Tian Release-Acked-by: Konrad Rzeszutek Wilk --- diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 0bf92b25c2..f2554d68d2 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3086,7 +3086,8 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) if ( exit_qualification & 0x10 ) { /* INS, OUTS */ - if ( !handle_mmio() ) + if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ || + !handle_mmio() ) hvm_inject_hw_exception(TRAP_gp_fault, 0); } else